package cn.gailvlun.gll.net;



public class QueryParam {
    private int page = 1;
    private transient int lastPage = 1;

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public void nextPage() {
        page++;
    }

    public void prePage() {
        page--;
        if (page < 1) {
            page = 1;
        }
    }

    public void resetPage() {
        lastPage = page;
        page = 1;
    }

    public void resumePage() {
        page = lastPage;
    }
}
